<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<css file='__PUBLIC__/Css/public.css'/>
<head>
<style type="text/css">
    #current a{padding-left: 10px;}
</style>
</head>
<body> 
	<TABLE class="talbe">
		<tr>
			<th width="5%">ID</th>
			<th width="30%">标题</th>
			<th>板块分类</th>
			<th>点击次数</th>
			<th>发布时间</th>
			<th>操作</th>
		</tr>
		<foreach name="blog" item="v">
        <tr>
        	<td>{$v.id}</td>
        	<td>
        	  <a href="{:U('/'.$v['id'])}">{$v.title}</a>
              <foreach name="v.attr" item="value">
                	<span style="color:{$value.color};border:1px solid {$value.color};margin-left:5px;">{$value.name}</span>
              </foreach>
        	</td>
        	<td>{$v.cate}</td>
        	<td>{$v.click}</td>
        	<td>{$v.time|date='Y-m-d H:m',###}</td>
        	<td>
        	    <if condition="$v.del eq 0">
        	       <a href="{:U(GROUP_NAME.'/Blog/ToRecycle',array('id'=>$v['id'],'type'=>1))}">[移到回收站]</a>
        	       <a href="#">[修改]</a>
                <else/>
                   <a href="{:U(GROUP_NAME.'/Blog/ToRecycle',array('id'=>$v['id'],'type'=>0))}">[还原]</a>
                   <a href="{:U(GROUP_NAME.'/Blog/Del',array('id'=>$v['id']))}">[彻底删除]</a>
        	    </if>
            </td>
        </tr>
		</foreach>
        <tr>
            <td colspan='6'>{$page}</td>
        </tr>
	</TABLE>
</body>
</html>